type int = number;
//class OlympicGuessData

    export  class OlympicGuessData
    {
        

        public get isWaitting(): Boolean
        {
            if (this.status == OlympicGuessData.Status_Waitting) 
            {
                return true;
            }
            return false;
        }

        public get isDone(): Boolean
        {
            if (this.status == OlympicGuessData.Status_Done) 
            {
                return true;
            }
            return false;
        }

        public get isMiss(): Boolean
        {
            if (this.status == OlympicGuessData.Status_Miss) 
            {
                return true;
            }
            return false;
        }

        public get isDoneOrMiss(): Boolean
        {
            if (this.status == OlympicGuessData.Status_Miss) 
            {
                return true;
            }
            if (this.status == OlympicGuessData.Status_Done) 
            {
                return true;
            }
            return false;
        }

        public get isDoing(): Boolean
        {
            return OlympicGuessData.Status_Guessing == this.status;
        }

        public get isNotOpened(): Boolean
        {
            return OlympicGuessData.Status_NotOpened == this.status;
        }

        public isRight(): Boolean
        {
            if (!this.isDone) 
            {
                return false;
            }
            return this.answer == this.myAnswer;
        }

        public getAnswerIndex(arg1: string): int
        {
            if (arg1 == "A") 
            {
                return 0;
            }
            if (arg1 == "B") 
            {
                return 1;
            }
            if (arg1 == "C") 
            {
                return 2;
            }
            return 3;
        }

        public static /* const */Status_Done: string="你已竞猜";

        public static /* const */Status_Miss: string="错过竞猜";

        public static /* const */Status_Waitting: string="等待开奖";

        public static /* const */Status_Guessing: string="<font color=\'#00FF21\'>开始竞猜</font>";

        public static /* const */Status_NotOpened: string="<font color=\'#FE0000\'>暂未开启</font>";

        public /* var */dateNum: int;

        public /* var */goldNum: int;

        public /* var */date: string;

        public /* var */myAnswer: string;

        public /* var */answer: string;

        public /* var */status: string;
    }
